
<template >
  <div>
    <modaltemplate>
      <template v-slot:changtai="slotProps">
        <!-- slotProps.menuitem 可以使用 -->
        <div class="test2">{{ slotProps.menuitem }}</div>
        <boxrow :menuitem="slotProps.menuitem" />
      </template>
    </modaltemplate>
  </div>
</template>
<script lang="ts">
import modaltemplate from '@/components/modal.vue'
import boxrow from '@/components/boxrow.vue'
export default {
  name: 'modaltest',
  components: {
    modaltemplate,
    boxrow
  },
  props: {
    menuitem: Array,
  },
  setup(props) {
  }
}
</script>
<style lang="less" scoped>
.test2 {
  color: red;
}
</style>